<?php
class Builder {
	private $items;
	private $fileName;
	public function __construct ($fileName) {
		$this->fileName = $fileName;
		$this->items = array();
	}
	public function __set ($name, $value) {
		return $this->setItem($name, $value);
	}
	public function fetch () {
		foreach ($this->items as $key => $value) {
			${$key} = $value;
		}
		ob_start();
		include($this->fileName);
		return ob_get_clean();
	}
	protected function setItem ($name, $value) {
		$this->items[$name] = $value;
	}
}
?>